package net.thxjj.mobileServer.dao;


import net.thxjj.sitermodel.Relation;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface RelationDao {

    public List<String> getUserBindDeviceList(@Param("user_id")long user_id);
    public void insertRelation(Relation relation);
    public Relation selectRelationDeviceUser(@Param("bind_user") long bind_user, @Param("device_id") String device_id);
    public void deleteAdminRelation(@Param("device_id")String device_id);
    public void deleteRelation(@Param("device_id")String device_id,@Param("bind_user") long bind_user);
    public void deleteRelationByUser(@Param("bind_user") long bind_user);

}
